<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String ctx = request.getContextPath();
    request.setAttribute("ctx", ctx);
%>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/jquery-1.8.2.min.js"></script>
     <link href="<%=request.getContextPath()%>/css/css.css" rel="stylesheet">
</head>
<body>
<h2>登录页面</h2>
<form action="login.do" method="post">
    用户名:<input type="text" name="name"><br>
    密码:<input type="text" name="password"><br>
    <input type="submit" value="登录">

</form>
<input type="button" value="注册" onclick="toadd()">
<script>
    function toadd(){
        location="toadd.do";
    }
</script>
</body>
</html>